/*
 * Book.java
 *
 * This class represents the state information(name, author name, ISBN number,
 * price and year of publication) of a book.
 *

 */

package com.javacore.day4.bookrepository;

/**
 * This class is used to store information about a book.
 * @author 
 */
public class Book {
    
    /**
     * Instance variable to store the name of the book.
     */
    String name;
    
    /**
     * Instance variable to store the name of the author.
     */
    String authorName;
    
    /**
     * Instance variable to store the ISBN number.
     */
    int isbn;
    
    /**
     * Instance variable to store the price of the book.
     */
    float price;
    
    /**
     * Instance variable to store the year of publication.
     */
    short yearPublished;
    
    /**
     * Creates a new instance of Book class.
     */
    public Book() {
        name = "";
        authorName = "";
        isbn = 0;
        price = 0;
        yearPublished = 0;
        
    }
}
